# 计科1915班 0306224505 屠玉宝

def for_sum():
    sum = 0
    for i in range(1, 101):
        sum += i
    print(sum)


def while_sum():
    sum = 0
    i = 1
    while i <= 100:
        sum += i
        i += 1
    print(sum)


if __name__ == '__main__':
    for_sum()
    while_sum()
